package service.impl;

import bean.LostProductType;
import dao.ILostProductTypeDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import service.ILostProductTypeService;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional
public class LostProductTypeServiceImpl implements ILostProductTypeService {
    @Resource
    private ILostProductTypeDao iLostProductTypeDao;

    @Override
    public List<LostProductType> queryAll() {
        return iLostProductTypeDao.queryAll();
    }

    @Override
    public LostProductType queryById(Integer l_tid) {
        return iLostProductTypeDao.queryById(l_tid);
    }

    @Override
    public void add(LostProductType lostProductType) {
        iLostProductTypeDao.add(lostProductType);
    }

    @Override
    public void update(LostProductType lostProductType) {

        iLostProductTypeDao.update(lostProductType);
    }

    @Override
    public void delete(LostProductType productType) {
        iLostProductTypeDao.delete(productType);
    }
}
